package com.lemontree.spring4.day02;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @Author: YLBG-YCY-1325
 * @Description:
 * @Date: 2017/8/21
 */
@Configuration
@EnableAspectJAutoProxy // 启用AspectJ注解的自动代理，让audience注册为一个切面{@see AspectJAutoProxyRegistrar.class}
public class AopConfig {
    @Bean
    public Audience02 audience02(){
        return new Audience02();
    }
    @Bean
    public TrackAop trackAop(){
        return new TrackAop();
    }
    @Bean
    public Encoreableroducer encoreableroducer(){
        return new Encoreableroducer();
    }
}
